From 1aef764dd531b98d203ef0c156eb7ad2ae78a53c Mon Sep 17 00:00:00 2001 From: robertl Date: Wed, 9 Jan 2008 04:01:10 +0000 Subject: [PATCH] Don't free trash pointer if no valid points read from Garmin. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3049 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/garmin.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gpsbabel/garmin.c b/gpsbabel/garmin.c index a901c9bef..dcd8fbe91 100644 --- a/gpsbabel/garmin.c +++ b/gpsbabel/garmin.c @@ -239,7 +239,7 @@ static void waypt_read(void) { int i,n; - GPS_PWay *way; + GPS_PWay *way = NULL; if (getposn) { waypoint *wpt = waypt_new(); -- 2.30.2